<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/file/apple-touch-icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/file/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/file/favicon-16x16.png">
  <link rel="mask-icon" href="/file/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"czlz.net","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="高大上的密码学终于来了。">
<meta property="og:type" content="article">
<meta property="og:title" content="密码学第一天（大比武_CTF课_第十三天）">
<meta property="og:url" content="https://czlz.net/2020/jxsw_dbw_crypto_1/index.html">
<meta property="og:site_name" content="粗制乱造的个人网站">
<meta property="og:description" content="高大上的密码学终于来了。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/Caesar.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/bg.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/fence.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/affine_cipher.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/frequency_analyse.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/arc4.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/DES.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/vigenere_1.png">
<meta property="og:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/vigenere_2.png">
<meta property="article:published_time" content="2020-07-14T16:00:00.000Z">
<meta property="article:modified_time" content="2020-07-19T01:34:31.198Z">
<meta property="article:author" content="粗制乱造">
<meta property="article:tag" content="CTF">
<meta property="article:tag" content="练习题">
<meta property="article:tag" content="密码学">
<meta property="article:tag" content="AES">
<meta property="article:tag" content="DES">
<meta property="article:tag" content="RC4">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://czlz.net/2020/jxsw_dbw_crypto_1/Caesar.png">

<link rel="canonical" href="https://czlz.net/2020/jxsw_dbw_crypto_1/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>密码学第一天（大比武_CTF课_第十三天） | 粗制乱造的个人网站</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">粗制乱造的个人网站</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">杂七杂八的一堆东西</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-python">

    <a href="/pyodide/" rel="section"><i class="fa fa-user fa-fw"></i>在线Python3.8</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://czlz.net/2020/jxsw_dbw_crypto_1/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/file/avatar.png">
      <meta itemprop="name" content="粗制乱造">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="粗制乱造的个人网站">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          密码学第一天（大比武_CTF课_第十三天）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-07-15 00:00:00" itemprop="dateCreated datePublished" datetime="2020-07-15T00:00:00+08:00">2020-07-15</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-07-19 09:34:31" itemprop="dateModified" datetime="2020-07-19T09:34:31+08:00">2020-07-19</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/CTF/" itemprop="url" rel="index"><span itemprop="name">CTF</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/CTF/%E7%AC%94%E8%AE%B0/" itemprop="url" rel="index"><span itemprop="name">笔记</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/CTF/%E7%AC%94%E8%AE%B0/crypto/" itemprop="url" rel="index"><span itemprop="name">crypto</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/CTF/%E7%AC%94%E8%AE%B0/crypto/%E4%BD%9C%E9%A2%98/" itemprop="url" rel="index"><span itemprop="name">作题</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <!-- toc -->
<pre><code>高大上的密码学终于来了。</code></pre><a id="more"></a>
<h1 id="课后练习"><a href="#课后练习" class="headerlink" title="课后练习"></a>课后练习</h1><h2 id="Caesar"><a href="#Caesar" class="headerlink" title="Caesar"></a>Caesar</h2><h3 id="密文"><a href="#密文" class="headerlink" title="密文"></a>密文</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">lrgm&#123;znoy_oy_znk_vrgot_zkdz&#125;</span><br></pre></td></tr></table></figure>
<h3 id="解密"><a href="#解密" class="headerlink" title="解密"></a>解密</h3><p><img src="Caesar.png" alt=""></p>
<p>flag{this_is_the_plain_text}</p>
<h2 id="baconian"><a href="#baconian" class="headerlink" title="baconian"></a>baconian</h2><h3 id="密文-1"><a href="#密文-1" class="headerlink" title="密文"></a>密文</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">BAABBAABBBAABAA BAABAAABAAAAABABAAABAABAABAABB ABABAAABAABBAAA ABAAABAABA ABAAAABABBABAAAABABAAABAAAAAABAAAAAAAABAABBABABAAAAAAAAABBAB</span><br></pre></td></tr></table></figure>
<h3 id="解密-1"><a href="#解密-1" class="headerlink" title="解密"></a>解密</h3><p><img src="bg.png" alt=""><br>the secret key is ilikebacnian</p>
<h2 id="fence-栅栏密码"><a href="#fence-栅栏密码" class="headerlink" title="fence(栅栏密码)"></a>fence(栅栏密码)</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fa&#123;ti_h_aywyt_rc&#125;lgi_stees_a_ocak</span><br></pre></td></tr></table></figure>
<p><img src="fence.png" alt=""><br>flag{it_is_the_easy_way_to_crack}</p>
<h2 id="affine-cipher-仿射密码"><a href="#affine-cipher-仿射密码" class="headerlink" title="affine cipher(仿射密码)"></a>affine cipher(仿射密码)</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ugxj&#123;xuunkf_bnoyfs_nh_wzz_fxht&#125;</span><br></pre></td></tr></table></figure>
<p><img src="affine_cipher.png" alt=""><br>写了一个脚本进行暴力算出<br>A=15，B=23<br>得到flag{affine_cipher_is_too_easy}</p>
<h2 id="frequency-analyse-词频分析"><a href="#frequency-analyse-词频分析" class="headerlink" title="frequency analyse(词频分析)"></a>frequency analyse(词频分析)</h2><p>拿到题时是一脸懵逼</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">某国总统发布的指令，寻找key，提交</span><br><span class="line"></span><br><span class="line">VIZZB IFIUOJBWO NVXAP OBC XZZ UKHVN IFIUOJBWO HB XVIXW XAW VXFI X QIXN VBD KQ IFIUOJBWO WBKAH NBWXO VBD XJBCN NKG QLKEIU DI XUI VIUI DKNV QNCWIANQ XN DXPIMKIZW VKHV QEVBBZ KA XUZKAHNBA FKUHKAKX XAW DI VXFI HBN QNCWIANQ NCAKAH KA MUBG XZZ XEUBQQ XGIUKEX MUBG PKAWIUHXUNIA NVUBCHV 12NV HUXWI XAW DI XUI SCQN QB HZXW NVXN XZZ EBCZW SBKA CQ NBWXO XAW DI DXAN NB NVXAP DXPIMKIZW MBU JIKAH QCEV XA BCNQNXAWKAH VBQN HKFI OBCUQIZFIQ X JKH UBCAW BM XLLZXCQI XAW NVI PIO KQ 640I11012805M211J0XJ24MM02X1IW09</span><br></pre></td></tr></table></figure>
<p><img src="frequency_analyse.png" alt=""><br>找到一个网站：<a href="https://quipqiup.com/" target="_blank" rel="noopener">https://quipqiup.com/</a></p>
<p>flag{640e11012805f211b0ab24ff02a1ed09}</p>
<h2 id="ARC4-解密"><a href="#ARC4-解密" class="headerlink" title="ARC4 解密"></a>ARC4 解密</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">b&#39;this_is_the_key&#39;</span><br><span class="line">b&#39;\nr\xad\x9e\xe43\xca\xcfD\x1b#\x85P\x97\xbcM\xc4\xbeX1\xdc\x1f\xd8\x99&#39;</span><br></pre></td></tr></table></figure>
<p><img src="arc4.png" alt=""></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">from Crypto.Cipher import ARC4</span><br><span class="line">a&#x3D; ARC4.new(b&quot;this_is_the_key&quot;)</span><br><span class="line">a.decrypt(b&#39;\nr\xad\x9e\xe43\xca\xcfD\x1b#\x85P\x97\xbcM\xc4\xbeX1\xdc\x1f\xd8\x99&#39;)</span><br><span class="line">b&#39;flag&#123;RC4_is_your_friend&#125;&#39;</span><br></pre></td></tr></table></figure>
<p>flag{RC4_is_your_friend}</p>
<h2 id="DES-解密"><a href="#DES-解密" class="headerlink" title="DES 解密"></a>DES 解密</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">b&#39;\xc9\xf7?j\x9d\x87\x86\xd5\xef|WE\xb6\xce\xd3\xf0LI\x86&#96;u\xd2|k\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87&#39;</span><br><span class="line"></span><br><span class="line">b&#39;easykey\x00&#39;</span><br></pre></td></tr></table></figure>
<p>写个代码</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">from Crypto.Cipher import DES</span><br><span class="line">key&#x3D;b&quot;easykey\x00&quot;</span><br><span class="line">des&#x3D; DES.new(key,DES.MODE_ECB)</span><br><span class="line">des.decrypt(b&#39;\xc9\xf7?j\x9d\x87\x86\xd5\xef|WE\xb6\xce\xd3\xf0LI\x86&#96;u\xd2|k\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87\x8b\xa5\xb9&amp;\xb2\xf6\x10\x87&#39;)</span><br></pre></td></tr></table></figure>
<p><img src="DES.png" alt=""><br>flag{des_is_easy_to_use}</p>
<h2 id="AES-解密"><a href="#AES-解密" class="headerlink" title="AES 解密"></a>AES 解密</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">b&#39;\xee\xb8\\\xf3\x94\x00\x15\x8c\x9fX-\x03)5\xe4\xad&quot;\xf2\xca\x1e\x7f\x07\xcb,\xf1\x901N\t\x0bC\x95&#39;</span><br><span class="line">b&#39;secret\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&#39;</span><br></pre></td></tr></table></figure>
<p>写个代码</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">from Crypto.Cipher import AES</span><br><span class="line">key&#x3D;b&#39;secret\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&#39;</span><br><span class="line">aes&#x3D; AES.new(key,AES.MODE_ECB)</span><br><span class="line">aes.decrypt(b&#39;\xee\xb8\\\xf3\x94\x00\x15\x8c\x9fX-\x03)5\xe4\xad&quot;\xf2\xca\x1e\x7f\x07\xcb,\xf1\x901N\t\x0bC\x95&#39;)</span><br></pre></td></tr></table></figure>
<p>flag{secret_data}</p>
<h2 id="维吉尼亚密码-1"><a href="#维吉尼亚密码-1" class="headerlink" title="维吉尼亚密码 1"></a>维吉尼亚密码 1</h2><p>直接上网站,需要翻墙。<a href="https://www.guballa.de/vigenere-solver" target="_blank" rel="noopener">https://www.guballa.de/vigenere-solver</a></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">J hejbh J kfmz djjb zcr uvb gzxh. Hejg ft hef tibu&#123;fu_wp_b_sxtm_tbm&#125;</span><br></pre></td></tr></table></figure>
<p>密钥：box<br><img src="vigenere_1.png" alt=""></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">I think I will give you the flag. This is the flag&#123;it_is_a_easy_way&#125;</span><br></pre></td></tr></table></figure>

<h2 id="维吉尼亚密码-2"><a href="#维吉尼亚密码-2" class="headerlink" title="维吉尼亚密码 2"></a>维吉尼亚密码 2</h2><p>直接上网站,需要翻墙。<a href="https://www.guballa.de/vigenere-solver" target="_blank" rel="noopener">https://www.guballa.de/vigenere-solver</a><br>太长了直接截个图。<br>密钥：csuwangjiang</p>
<p><img src="vigenere_2.png" alt=""></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">flag is afctf&#123;Whooooooo_U_Gotcha!&#125;</span><br></pre></td></tr></table></figure>
    </div>

    
    
    
        <div class="reward-container">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    打赏
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/file/weixin.png" alt="粗制乱造 微信支付">
        <p>微信支付</p>
      </div>
      
      <div style="display: inline-block;">
        <img src="/file/zfb.png" alt="粗制乱造 支付宝">
        <p>支付宝</p>
      </div>

  </div>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/CTF/" rel="tag"># CTF</a>
              <a href="/tags/%E7%BB%83%E4%B9%A0%E9%A2%98/" rel="tag"># 练习题</a>
              <a href="/tags/%E5%AF%86%E7%A0%81%E5%AD%A6/" rel="tag"># 密码学</a>
              <a href="/tags/AES/" rel="tag"># AES</a>
              <a href="/tags/DES/" rel="tag"># DES</a>
              <a href="/tags/RC4/" rel="tag"># RC4</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/ctf_web_buuoj_cn_BJDCTF2020_Easy_MD5/" rel="prev" title="【BJDCTF2020】Easy MD5">
      <i class="fa fa-chevron-left"></i> 【BJDCTF2020】Easy MD5
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/ctf_web_buuoj_cn_RoarCTF2019_EasyJava/" rel="next" title="【RoarCTF 2019】Easy Java">
      【RoarCTF 2019】Easy Java <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#课后练习"><span class="nav-number">1.</span> <span class="nav-text">课后练习</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Caesar"><span class="nav-number">1.1.</span> <span class="nav-text">Caesar</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#密文"><span class="nav-number">1.1.1.</span> <span class="nav-text">密文</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#解密"><span class="nav-number">1.1.2.</span> <span class="nav-text">解密</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#baconian"><span class="nav-number">1.2.</span> <span class="nav-text">baconian</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#密文-1"><span class="nav-number">1.2.1.</span> <span class="nav-text">密文</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#解密-1"><span class="nav-number">1.2.2.</span> <span class="nav-text">解密</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#fence-栅栏密码"><span class="nav-number">1.3.</span> <span class="nav-text">fence(栅栏密码)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#affine-cipher-仿射密码"><span class="nav-number">1.4.</span> <span class="nav-text">affine cipher(仿射密码)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#frequency-analyse-词频分析"><span class="nav-number">1.5.</span> <span class="nav-text">frequency analyse(词频分析)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#ARC4-解密"><span class="nav-number">1.6.</span> <span class="nav-text">ARC4 解密</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#DES-解密"><span class="nav-number">1.7.</span> <span class="nav-text">DES 解密</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#AES-解密"><span class="nav-number">1.8.</span> <span class="nav-text">AES 解密</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#维吉尼亚密码-1"><span class="nav-number">1.9.</span> <span class="nav-text">维吉尼亚密码 1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#维吉尼亚密码-2"><span class="nav-number">1.10.</span> <span class="nav-text">维吉尼亚密码 2</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="粗制乱造"
      src="/file/avatar.png">
  <p class="site-author-name" itemprop="name">粗制乱造</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">43</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">37</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">59</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">粗制乱造</span>
</div>
  <div class="powered-by">由 <a href="https://czlz.net/" class="theme-link">czlz.net</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

</body>
</html>
